﻿using XinGuanERP.Models.Vo.system;
using XinGuanERP.Utils;

namespace XinGuanERP.Services.system.IServices
{
    public interface ISysMenuService
    {
        PageResult<SysMenuVo> GetSysMenuWithPage(int page, int pageSize, string? menuName, string? nodeId);
        bool UpdateSysMenu(SysMenuVo viewSysMenu);
        bool DeleteSysMenu(string Id);
        SysMenuVo GetSysMenuById(string Id);
        List<SysMenuListVo> GetSysMenuWithTree();
        List<RouteItemVo> GetGrantMenuWithList();
        List<SysMenuListVo> GetSysMenuAndExcludeNodeWithOptionTree(string? nodeId);
        HashSet<string> GetGrantPermissions();
    }
}
